package dataStructure.xmg1.a06_copy;

//import dataStructure.xmg1.a06_copy.printer.BinaryTrees;

import dataStructure.xmg1.a06_copy.printer.BinaryTrees;
import dataStructure.xmg1.a06_copy.tree.BST;

/**
 * @author: vince_zww
 * @date: 2020/12/13 23:04
 * @desceription:
 */
public class Main {

    static void test1() {
        Integer data[] = new Integer[]{
                7,4,9,2,5,8,11,3,12,1,10
        };

        BST<Integer> bst = new BST<>();
        for (int i = 0; i < data.length; i++) {
            bst.add(data[i]);
        }
        BinaryTrees.println(bst);
        bst.remove(7);
        BinaryTrees.println(bst);

    }

    public static void main(String[] args) {
        test1();
    }
}
